virtualisation.fileSystems.<name>.device
The device as passed to mount.
This can be any of:
- a filename of a block special device such as
/dev/sdc3 - a tag such as
UUID=fdd68895-c307-4549-8c9c-90e44c71f5b7 - (for bind mounts only) the source path
- something else depending on the
fsType. For example,nfsdevice may look likeknuth.cwi.nl:/dir
This is called device in mount(8) and fs_spec in fstab(5).
- Type
null or string (with check: non-empty)- Default
null- Example
"/dev/sda"- Declared
- <nixpkgs/nixos/modules/tasks/filesystems.nix>